/*
* Copyright (C) 2009-2012 - Roman Kalynchuk
*
* This file is part of REngine.
*
* REngine is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* REngine is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with REngine.  If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __CDRAW_VERTEX_H__
#define __CDRAW_VERTEX_H__

#include "render/rendertypes.h"
#include "mathlib/vec3.h"
#include "mathlib/vec4.h"

namespace rengine3d {

	class CDrawVertex {
	public:
		CDrawVertex();

		void Clear(void);
	public:
		CVec3	pos;
		CVec4	st;
		CVec3	normal;
		CVec3	tangent;
		CVec4	color;
	};

	r_inline CDrawVertex::CDrawVertex() {
		this->Clear();
	}

	r_inline void CDrawVertex::Clear(void) {
		pos.Set(0,0,0);
		st.Set(0,0,0,0);
		normal.Set(0,0,0);
		tangent.Set(0,0,0);
		color.Set(0,0,0,0);
	}

	typedef std::list<CDrawVertex> vertexList_t;
	typedef vertexList_t::iterator vertexListIt_t;

	typedef std::vector<CDrawVertex> vertexVector_t;
	typedef vertexVector_t::iterator vertexVectorIt_t;
}

#endif
